﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi.wMall.Public
{
    public partial class wfTravelRouteInfo : msBsc.Cls.BPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 获取路线详情
        /// </summary>
        /// Author:任延华
        /// Creation date:2015-8-4
        private void GetRouteInfo()
        {
            string routeId = this.GetParamHtValue("routeId");
            using (msBsc.AppLogic.DataAlc.CBizRoute route = new AppLogic.DataAlc.CBizRoute())
            {
                DataTable dt = route.GetRouteInfo(routeId);
                if (dt==null||dt.Rows.Count<1)
                {
                    return;
                }
                string strRet = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(dt, "", "ROUTE_ID,ROUTE_TITEL,ROUTE_INTRODUCTION,ROUTE_COUNTRY,ROUTE_PROVINCE,ROUTE_AREA,countyName,provinceName,areaName", 1, 100, "");
                this.ExecJScript(@"setScenicInfo(" + strRet + ")");
            }
        }

        public override void DoAction()
        {
            if (this.strAction=="init")
            {
                GetRouteInfo();
            }
        }
    }
}